package day02_0621;

public class Test2 {





    public static void main(String[] args) {
        int year=2025;
        System.out.println("是否是世纪闰年"  +  (year%400 == 0));
        System.out.println("是否是普通闰年"  +  (year%4 == 0  &&  year%100 != 0));

        System.out.println( year%400 == 0 || (year%4 == 0  &&  year%100 != 0 ) );

        System.out.println(  !(year<0) );//判断year是否不小于0

        /*int i=1;
        i++;//让i加1  //(从1增加到2)
        System.out.println(i);//2

        int k=1;
        k--;//让i减1  //(从1减小到0)
        System.out.println(k);//0*/







        int a=1;
        //先用a的值赋值给a++， 然后让a自增1
        System.out.println(a++);//1
        System.out.println(a);//2

        int b=1;
        //先让b自增1， 然后用b的值2赋值给++b
        System.out.println(++b);//2
        System.out.println(b);//2


        int x=6;
        //6(x7)  8(x8)  8(x9)
        int rs= x++ + ++x - x++;
        System.out.println(rs);//6
        System.out.println(x); //9

        System.out.print("");
        System.out.println("");





        int age=13;
        System.out.println(0<age && age++ <18);
        System.out.println(age);//14

        System.out.println(age <0  ||  299<age++);
        System.out.println(age); //age是15



    }
}
